]> dgit.raspbian.org Git - gnome-shell.git/commit
st/icon: Always show empty texture if both gicons are NULL
authorJonas Dreßler <verdre@v0yd.nl>
Sat, 4 Apr 2020 08:12:06 +0000 (10:12 +0200)
committerJonas Dreßler <verdre@v0yd.nl>
Sat, 4 Apr 2020 14:20:35 +0000 (16:20 +0200)
commit07deda593ab2e9ea30e3e1dca8c6bedd30e4ac0b
tree63d83a3f9b0911cdaf43dd25f73c7d06603fdb3a
parent1ca39e858699d171c2cccd610c95fa537fd9dda7
st/icon: Always show empty texture if both gicons are NULL

Commit 7ff7fb5d3b3ee655b1492226f68aeadac846e247 forgot to clear the
`priv->icon_texture` actor when returning from st_icon_update(), which
means we don't always switch to an empty icon if both gicon properties
are set to NULL.

Fix this and destroy the actor before returning early from
st_icon_update().

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1178
src/st/st-icon.c